import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

const actions = {}
const mutations = {}
const state = {}

/**
 * 创建store
 * @type {Store<{}>}
 */
const store = new Vuex.Store({
    //es6语法，key value一样，可简写 actions:actions
    actions,
    mutations,
    state
})

/**
 * 导出store
 */
export default store